From: | David McMinn |
Date: | 27 May 2001 at 20:26:40 |
Subject: | Re: 256 Colour screens? |
Hi Jason
> > The only other thing I can think of ATM is doing the scroll in software
> > onto another bitmap and then displaying the main playfield and blits on
> > top of that. But that would be pretty slow.
> I've tried this and the speed is not to bad at all. The main problem with this
> though is that the floor moves much to fast. Is there a way that I could
> smooth it out a bit? Is it possible to blit in fractions of pixels like when
> displayscrolling or is there another way. At the moment the first line moves
> at a rate of one pixel the second at two pixels and so on, but like I have said this
> is much to fast. Any ideas?
You can't blit in fractions of a pixel. If you are willing to you can do
it in jerk-o-vision, where you update the position in fractions and only
actually move the floor on pixel boundaries.
This isn't as difficult as it sounds, not difficult at all. Just use a
quick variable for storing the position to move by, increase the position
by a fraction and the bitting commands will automatically use the integer
part of the values.
But like I say it'll be a bit jerky.
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie